package com.share.design.flyweight.demo01;

/**
 * @author caifan
 * @since 2022/11/3
 */
public class UnsharedConcreteFlyweight implements Flyweight{
    private String uniqueKey;
    public UnsharedConcreteFlyweight(String key) {
        this.uniqueKey = key;
    }
    @Override
    public void operation(int state) {
        System.out.println("=== 使用不共享的对象，内部状态："+uniqueKey+"，外部状态："+state);
    }
}
